home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11540 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Example of an unintelligible program in C
  5. Date: Mon, 25 Mar 96 00:12:07 GMT
  6. Organization: none
  7. Message-ID: <827712727snz@genesis.demon.co.uk>
  8. References: <4iegj7$evn@bee.uspnet.usp.br> <4if0i4$qsm@garden.csc.calpoly.edu> <4ij8je$lb9@charm.il.ft.hse.nl> <4iq67bINN3gs@keats.ugrad.cs.ubc.ca>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4iq67bINN3gs@keats.ugrad.cs.ubc.ca>
  15.            c2a192@ugrad.cs.ubc.ca "Kazimir Kylheku" writes:
  16.  
  17. >The square root example given in the earlier posting employs a variable whose
  18. >name is the underscore character. Oops.
  19.  
  20. That's OK in this case since the identifier has block scope and the
  21. underscore is not followed by an uppercase letter or another underscore
  22. (and its not a full moon etc.)
  23.  
  24. >What about the use of putchar without having included <stdio.h>, hmm?
  25.  
  26. Since putchar() returns int, has a fixed argument list and no agrument
  27. undergoes default argument promotion, that's fine.
  28.  
  29. >The exit status is undefined, also.
  30.  
  31. Bad style perhaps but it is permitted by the standard.
  32.  
  33. -- 
  34. -----------------------------------------
  35. Lawrence Kirby | fred@genesis.demon.co.uk
  36. Wilts, England | 70734.126@compuserve.com
  37. -----------------------------------------
  38.